<template>
  <div>
      <el-pagination
    layout="prev, pager, next"
    :current-page="pagenation.pageNum"
    :total="pagenation.total"
    :page-size="pagenation.pageSize"
    :page-count="pagenation.pages"
    @current-change="currentchange"
    >
  </el-pagination>
  </div>
</template>

<script>
import {mapActions,mapState} from 'vuex' 
export default {
    computed:{
      ...mapState("student",["pagenation"])
    },
    methods:{
     currentchange(current){
       this.setStudents({page:current,size:5});
     },
     ...mapActions("student",["setStudents"])
    }
}
</script>

<style>

</style>